
import request from "@/utils/request";
class API {
  /*     获取列表     */
  static getList (params) {
    return request({
      url: "/api/admin/user-statistics",
      method: "GET",
      params
    });
  }
  /*     获取    */
  static get (id) {
    return request({
      url: `/api/admin/user-statistics/${id}`,
      method: "GET",
    });
  }
  /*     修改    */
  static put (data) {
    return request({
      url: `/api/admin/user-statistics/${data.id}`,
      method: "PUT",
      data
    });
  }
  /*     删除     */
  static del (data) {
    return request({
      url: `/api/admin/user-statistics/${data.id}`,
      method: "DELETE",
    });
  }
}
export default API;